package com.imooc.springcloud;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @describte:TODO
 * @program:spring-cloud-demo
 * @author:zhengdp
 * @create:2021-10-04 23:01:26
 **/
@RestController
public class Controller {

    @Value("${name}")
    private String name;

    @Value("${myWord}")
    private String word;

    @GetMapping("/name")
    public String getName(){
        return name;
    }

    @GetMapping("/word")
    public String getWord(){
        return word;
    }
}
